package com.lagou.service.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email", path = "/email")
public interface EmailService {

    /**
     * 发送验证码到邮箱
     *
     * @param email
     * @param code
     * @return
     */
    @RequestMapping("/{email}/{code}")
    boolean sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);

}
